package com.yuxin.tongyi.lsll.common;

import android.os.Environment;

public class Constants {

	//菜单项
	public static final int MENU_ITEM_EXIT = 1;
	public static final int MENU_ITEM_CLOSE = 2;
	public static final int MENU_ITEM_RELOGIN = 3;
	
	public static final int FIRSTPAGE = 11; //首页
	public static final int LASTPAGE = 12;  //末页
	
	//登陆标识
	public static final String LOGIN_KEY_FLAG = "LOGIN_FLAG";
	public static final int LOGIN_VALUE_NEW = 21; //新登陆
	public static final int LOGIN_VALUE_RE = 22;  //重新登陆
	
	//异步状态/线程标识
	public final static int TH_SERVER_ON = 101;  //请求成功
	public final static int TH_SERVER_OFF = 102; //请求失败
	public final static int TH_DATA_ERROR = 103; //解析数据错误
	public final static int TH_NODATA = 104;  //暂无数据
	
	/*请求班级线程标识*/
	public final static int TH_CLASS_ON = 111;  //成功
	public final static int TH_CLASS_EMPTY = 112;  //暂无数据
	public final static int TH_CLASS_ERROR = 113;  //数据错误
	public final static int TH_CLASS_OFF = 114;  //请求服务器失败
	
	/*请求事件线程标识*/
	public final static int TH_EVENT_ON = 121;  //成功
	public final static int TH_EVENT_EMPTY = 122;  //暂无数据
	public final static int TH_EVENT_ERROR = 123;  //数据错误
	public final static int TH_EVENT_OFF = 124;  //请求服务器失败
	
	/*学生线程*/
	public final static int TH_STUDENT_ON = 131;  //请求学生线程成功
	public final static int TH_STUDENT_EMPTY = 132;  //暂无数据
	public final static int TH_STUDENT_ERROR = 133;  //数据错误
	public final static int TH_STUDENT_OFF = 134;  //请求服务器失败
	
	/*请求一日生活线程标识*/
	public final static int TH_DAYLIFE = 141;  //成功
	public final static int TH_DAYLIFE_NODATA = 142;  //无数据
	public final static int TH_DAYLIFE_SEND = 145;  //发送数据
	
	
	public final static int TH_VERSION = 191;  //请求版本信息
	public final static int TH_LOGIN = 192;  //请求登陆信息
	public final static int TH_LOGIN_ERROR = 193; //用户名或密码错误
	
	//模块操作标识
	//通知发送
	public static final int NOTICE_SEND_SUCCESS = 120; //信息发送成功
	public static final int NOTICE_SEND_FAIL = 121; //信息发送失败
	//拍照上传
	public static final int PHOTO_UPLOAD = 122; // 上传
	public static final int PHOTO_UPLOADMES = 123; // 上传信息处理
	
	
	
	/**
	 * 图片文件路径
	 */
	public static final String PIC_PATH =  Environment.getExternalStorageDirectory()+"/leibeitong";
	
	//主界面图标
	public static final String ITEM_TEXT = "item_text";
	public static final String ITEM_IMAGE = "item_image";
	
	//存入APPLICATION全局变量名
	public static final String GLOBAL_LOGININFO = "GLOBAL_LOGININFO";     //登陆用户信息
	public static final String GLOBAL_TEACHERINFO = "GLOBAL_TEACHERINFO"; //登陆老师信息
	public static final String GLOBAL_LIST_STUDENT = "GLOBAL_LIST_STUDENT"; //临时缓存一日生活中的学生列表
	public static final String GLOBAL_LIST_DAYLIFE = "GLOBAL_LIST_DAYLIFE"; //临时缓存一日生活中的一日生活信息
	
	
	//配置文件key
	public static final String CFG_AUTOLOGIN = "AUTOLOGIN"; //自动登录    类型 boolean
	public static final String CFG_REMEMBER = "REMEMBER";   //记住密码    类型 boolean
	
	public static final String CFG_LOGINNAME = "LOGINNAME";  //登录名
	public static final String CFG_LOGINPASSWORD = "LOGINPASSWORD"; //登录密码
	
	public static final String CFG_CLASS_STATE = "CLASS_STATE";  //班级状态
	public static final String CFG_CLASS_DATA = "CLASS_DATA";    //班级数据
	public static final String CFG_CLASS_FIRST = "CFG_CLASS_FIRST"; //读取班级列表中第一个班级
	
	public static final String CFG_STUDENT_STATE = "STUDENT_STATE";  //学生状态
	public static final String CFG_STUDENT_DATA = "STUDENT_DATA";  //学生数据
	public static final String CFG_STUDENT_CLASSID = "STUDENT_CLASS_ID";  //学生数据对应的班级ID
	
	public static final String CFG_EVENT_STATE = "EVENT_STATE";  //事件状态
	public static final String CFG_EVENT_DATA = "EVENT_DATA"; //事件数据
	public static final String CFG_EVENT_FIRST = "CFG_EVENT_FIRST"; //读取事件列表中第一个事件
	
	public static final String CFG_MESSAGE_CLASS_ID = "CFG_MESSAGE_CLASS_ID"; //已选择的班级ID,用于临时保存短信内容
	public static final String CFG_MESSAGE_CLASS_NAME = "CFG_MESSAGE_CLASS_NAME"; //已选择的班级NAME,用于临时保存短信内容
	public static final String CFG_MESSAGE_CONTENT = "MESSAGE_CONTENT"; //已添加的短信内容
	
	//提示信息
	public final static String MSG_LOGIN_ERROR = "用户名或密码错误！";
	public final static String MSG_LOGIN_EMPTY = "用户名或密码不能为空！";
	public final static String MSG_DATA_ERROR = "数据异常,请稍后在试！";
	public final static String MSG_SERVER_OFF = "连接服务器失败！";
	public final static String MSG_NODATA = "暂无数据！";
	public final static String MSG_VERSION_NO = "暂无版本更新！";
	public final static String MSG_VERSION_NEW = "有最新的软件包哦，亲快下载吧~";
	public final static String MSG_LOADING = "数据加载中...";
	public final static String MSG_WAIT = "请稍候...";
	public final static String MSG_SENDING = "正在发送中...";
	public final static String MSG_READCACHE = "由于网络原因，连接服务器失败，正在读取以往缓存数据！";
	
	//对象流名称
	public static final String STREAM_CLASS_OBJECT = "CLASS_OBJECT"; //班级对象流名称
	public static final String STREAM_EVENT_OBJECT = "EVENT_OBJECT"; //事件对象流名称
	public static final String STREAM_STUDENT_OBJECT = "EVENT_OBJECT"; //学生对象流名称
	public static final String STREAM_CLASS_FIRST = "CLASS_FIRST"; //首班级对象流名称
	public static final String STREAM_EVENT_FIRST = "EVENT_FIRST"; //首事件对象流名称
	
	//onActivityResult requestCode弹出框列表请求标识
	public static final int REQUEST_CODE_DAYLIFE = 1;   //一日生活列表
	public static final int REQUEST_CODE_ClASS = 2;     //班级列表
	public static final int REQUEST_CODE_EVENT = 3;     //事件列表
	public static final int REQUEST_CODE_PHOTOLIB = 4;     //图库列表
	public static final int REQUEST_CODE_STUDENTS = 5;  //学生列表
	
	//班级列表弹出框返回值key
	public static final String SELECT_CLASS_ID = "SELECT_CLASS_ID";
	public static final String SELECT_CLASS_NAME = "SELECT_CLASS_NAME";
}
